import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ContentModule } from './modules/content/content.module';
import { TagModule } from './modules/tag/tag.module';
import { databaseConfig } from './config/database.config';
import { UploadModule } from './modules/upload/upload.module';
import { ConfigModule } from '@nestjs/config';
import { SongModule } from './modules/song/song.module';
import { ResourceModule } from './modules/resource/resource.module';
@Module({
  imports: [
    // ConfigModule.forRoot({
    //     envFilePath: `.env.${process.env.NODE_ENV || 'development'}`,
    //   }),
    TypeOrmModule.forRoot(databaseConfig),
    ContentModule,
    TagModule,
    UploadModule,
    SongModule,
    ResourceModule
  ],
})
export class AppModule {}